#include "threadcountup.h"
#include "sleeper.h"

void ThreadCountUp::run()
{
    Sleeper *Sleep = new Sleeper();
    int i = 0;
    while(true)
    {
        if (i<=60)
        {
            emit timeValue(i);
            Sleep->msleep(1000);
            i++;
        }
        else
        {
            i = 0;
            emit stopSignal();
        }
    }
}
